//
//  ST_TIANEngagementLayoutUIProtocol.swift
//  btvideo
//
//  Created by Jason on 2021/7/30.
//  Copyright © 2021 JarvanZhang. All rights reserved.
//

import UIKit

enum ST_TIANEngagementTargetSpendType {
    case free(seconds:Int)
    case reducingValue(integral:Float)
}

protocol ST_TIANEngagementLayoutUIProtocol:AnyObject{
    
    /// 状态改变
    func engagementStateUpdate(state:ST_EngagementStatus)
    /// 对方挂断
    func engagementOtherPartyHangsUp()
    
    /// 疑问 example 网络不好？
    func engagementDoubtLayout(isMe:Bool)
    /// 隐藏疑问  view
    func engagementHiddenDoubt()
    /// 当前通话时间
    func engagementCurrentSeconds(seconds:Int)

    /// 当前初印象免费时长  haveState 拥有免费初体验
    func engagementMyCurrentImpression(currentSeconds:Int,haveState:Bool)
    /// 当前免费时长
    func engagementMyCurrentFreeSeconds(seconds:Int)
    /// 当前Increase
    func engagementIncrease(value:ST_TIANEngagementTargetSpendType)
    
    /// 收到礼物Str
    func engagementReceivedGift(str:String)
    
    /// alert
    func engagementAlert(text:String)
    
    /// 提供远程VideoView
    func provideRemoteVideo() -> UIView?
}


extension ST_TIANEngagementLayoutUIProtocol{
    
    func provideRemoteVideo() -> UIView?{
        return nil
    }
}
